﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Data;

namespace for7raid.vkPlayer
{
    public class CurrentItemInTheListConverter: IMultiValueConverter
    {
        public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            var item = values[0] as MediaItem;
            var list = values[1] as IList<MediaItem>;
            return (double)values[2] > 0 && item != null && list != null && list.Contains(item);
        }

        public object[] ConvertBack(object value, Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
